package lab02.test19;

/**
 * Created by V555 on 2017/10/29.
 */
public class Test {
    public static void main(String[] args) {
        char tmp;
        String name="HelloWord";
        for (int i=name.length()-1;i>=0;i--){
            tmp=name.charAt(i);
            if (tmp>='A'&&tmp<='Z')
                System.out.print((char)(tmp+32));
            if (tmp>='a'&&tmp<='z')
                System.out.print((char)(tmp-32));
        }
    }
}

